package com.veo.service;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

@Service
//全局服务降级
@FeignClient(value = "cloud-provider-hystrix-payment",fallback = OrderHystrixImpl.class)
public interface OrderService {

    @GetMapping("/payment/hystrix/ok/{id}")
    public  String paymentOk(@PathVariable("id")Integer id);

    @GetMapping("/payment/hystrix/timeout/{id}")
    public  String paymentTimeout(@PathVariable("id")Integer id);
}
